//
//  CscAppClientApi.h
//  CscAppClient_20151116
//
//  Created by mouxiaochun on 15/12/16.
//  Copyright © 2015年 mmc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AIRequest.h"
typedef NS_ENUM(NSInteger) {
    validCodeType_login = 0,
    validCodeType_register,
    validCodeType_bind,
    validCodeType_addCard,
    validCodeType_forget,
}validCodeType;
@interface HivesHealthyApi : NSObject
//HivesHealthyUserApi
//HivesHealthyCommonApi
//。。。。
 

/**
 ** 司机注册
 ** phone: 手机号码
 ** code : 验证码
 ** password  : 密码
 ** type : 0注册，1:忘记密码，2更换手机，3修改登录密码
 **/

+ (void)driverRegiser:(NSString *)phone code:(NSString *)code password:(NSString *)password type:(NSString *)type completion:(AICompletionBlock)block;

/**
 ** 用户注册
 ** phoneNo:    手机号码
 ** validCode : 验证码
 **/
+ (void)userLogin:(NSString *)phoneNo validCode:(NSString *)validCode completion:(AICompletionBlock)block;

/**
 ** 获取验证码
 **/
+ (void)getValidCodeWithPhone:(NSString *)phone type:(NSString *)type state:(NSString *)state completion:(AICompletionBlock)block;


/**
 ** 用户修改密码
 **/

+ (void)modifyPassword:(NSString *)phoneNo
              password:(NSString *)password
           newPassword:(NSString *)newPassword
            completion:(AICompletionBlock)block;

/**
 ** 用户忘记密码
 ** phoneNo 手机号码
 ** validCode 短信验证码
 ** password 新密码
 **/

+ (void)forgetPhoneNo:(NSString *)phoneNo
             validCode:(NSString *)validCode
              password:(NSString *)password
            completion:(AICompletionBlock)block;



/**
 ** 查询用户基本信息
 ** userId: 用户ID
 **/
+ (void)queryUserInfo:(NSString *)userId completion:(AICompletionBlock)block;

/**
 ** 查询用户基本信息
 ** phoneNo: phoneNo手机号码
 ** file: 文件路径
 **/
+ (void)uploadHeadPic:(NSString *)phoneNo uploadType:(NSString *)uploadType file:(NSString *)file completion:(AICompletionBlock)block;
/**
 ** 亲情关爱
 **/
+ (void)careByIDCard:(NSString *)userId uploadType:(NSString *)uploadType file:(NSString *)file completion:(AICompletionBlock)block;

/**
 ** 用户绑定手机
 ** registerNo: 手机号码
 ** validCode : 验证码
 **/
+ (void)userBindPhoneNubmer:(NSString *)phoneNo validCode:(NSString *)validCode completion:(AICompletionBlock)block;

/**
 ** 用户注册后添加资料
 ** username        : 用户名称
 ** idcardnumber    : 用户身份证号码
 ** birthday        : 用户出生日期
 ** birthday        : 性别
 ** usernation      : 民族
 ** usernation      : 家庭住址
 **/
//+ (void)userUserId:(NSString *)userId
//        infomation:(NSString *)username
//      idcardnumber:(NSString *)idcardnumber
//          birthday:(NSString *)birthday
//            gender:(NSString *)gender
//        usernation:(NSString *)usernation
//           address:(NSString *)address
//        completion:(AICompletionBlock)block;
#pragma mark --- 健康模块
/**
 ** 健康管理，查询各项指标
 ** userId: 用户ID
 **/
+ (void)queryMyIndicators:(NSString *)userId completion:(AICompletionBlock)block;

+ (void)queryMyIndicatorsByCode:(NSString *)userId
                  indicatorCode:(NSString *)indicatorCode
                     queryValue:(NSString *)queryValue
                     completion:(AICompletionBlock)block;

+ (void)queryCaculateIndicators:(NSString *)userId completion:(AICompletionBlock)block;

/**
 ** 健康管理，查询各项指标
 ** userId: 用户ID
 **/
+ (void)queryIndicators:(NSString *)userId comletion:(AICompletionBlock)block;

/**
 ** 健康管理，添加关注各项指标
 ** userId: 用户ID
 ** indicators : 关注的数据的拼接（SG,SZY）
 **/
+ (void)addIndicators:(NSString *)userId indicators:(NSString *)indicators comletion:(AICompletionBlock)block;


#pragma mark --- 关爱人模块
/**
 ** 获取关爱人列表
 **/
+ (void)queryUserCareInfos:(NSString *)userId completion:(AICompletionBlock)block;

/**
 ** 添加关爱人
 **/
+ (void)addCareUserInfo:(NSString *)userId beCaredPhone:(NSString *)phone beCaredIdCard:(NSString *)idCard beCaredCode:(NSString *)code completion:(AICompletionBlock)block;

/**
 ** 删除关爱人
 **/
+ (void) deleteCareUserInfo:(NSString *)userId beCareId:(NSString *)beCareId completion:(AICompletionBlock)block;

#pragma mark --- 消息设置
/**
 ** 获取短信设置初始项
 **/
+ (void) queryMessage:(NSString *)userId completion:(AICompletionBlock)block;

/**
 ** 合并消息推送这个接口
 **/
+ (void) setMessageIs:(NSString *)name userId:(NSString *)userId isPush:(NSString *)isPush completion:(AICompletionBlock)block;
/**
 ** 推送Push
 ** isPush （0:否,1是）
 **/
+ (void) setMessagePush:(NSString *)userId isPush:(NSString *)isPush completion:(AICompletionBlock)block;
/**
 ** 推送短信
 ** isPush （0:否,1是）
 **/
+ (void) setMessageSMS:(NSString *)userId isPush:(NSString *)isPush completion:(AICompletionBlock)block;

/**
 * 公益活动
 */
+ (void) gotoActivity:(AICompletionBlock)block;
@end
